<template>
  <div class="left">
    <!-- 这里是左侧部分 -->
    <RouterLink class="tab" to="/home">首页</RouterLink><br />
    <RouterLink class="tab" to="/user">用户管理</RouterLink><br />
    <RouterLink class="tab" to="/add">添加用户</RouterLink><br />
  </div>
</template>
<script setup>
import { RouterLink, RouterView } from "vue-router";
</script>

<style scoped>
.left {
  width: 25%;
  height: 100%;
  background-color: rgb(134, 134, 134);
  text-align: center;
}

.tab {
  display: inline-block;
  width: 100px;
  height: 50px;
  line-height: 50px;
  color: rgb(82, 45, 133);
  font-weight: 600;
}
.router-link-active {
  color: red;
}
</style>
